//
// Custom Configured
//

#ifndef FTPLIB_CONFIG_H
#define FTPLIB_CONFIG_H

#ifdef __cplusplus
extern "C" {
#endif

#if defined ( __GNUC__ )
  #ifndef __weak__
    #define __weak__ __attribute__((weak))
  #endif /* __weak__ */
#endif /* __GNUC__ */

#ifdef __RTTHREAD__
#include "rtthread.h"
#if (RTTHREAD_VERSION >= 40100)
#include "sys/select.h"
#endif
#endif

#ifdef __RTTHREAD__
#define ftplib_free rt_free
#define ftplib_calloc rt_calloc
#define ftplib_malloc rt_malloc
#else
#define ftplib_free free
#define ftplib_calloc calloc
#define ftplib_malloc malloc
#endif

/* 是否启用自定义 SOCKET 架构 */
#define FTPLIB_SOCKET_ARCH_CUSTOM 0

/* 是否支持 SO_REUSEADDR */
#define FTPLIB_SO_REUSEADDR_ENABLE 0

#define FTPLIB_CB_BUFFER (1024)
#define FTPLIB_BUFSIZ    (128)
#define RESPONSE_BUFSIZ  (128)
#define TMP_BUFSIZ       (128)

#ifdef __cplusplus
}
#endif

#endif  // FTPLIB_CONFIG_H

